package com.huluobo.a2206parkdemo.adapter

import android.graphics.Color
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2206parkdemo.R
import com.huluobo.base.bean.ColorBeanItem

/**
 *  Created by LC on 2024/10/23.
 */
class ColorAdapter : BaseQuickAdapter<ColorBeanItem, BaseViewHolder>(R.layout.item_color) {
    override fun convert(helper: BaseViewHolder, item: ColorBeanItem) {
        helper.setBackgroundColor(R.id.item_color_iv, Color.parseColor(item.colorValue))
    }
}